<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Mobile extends CI_Controller {

	/**
	 * Index Page for this controller.
	 *
	 * Maps to the following URL
	 * 		http://example.com/index.php/welcome
	 *	- or -  
	 * 		http://example.com/index.php/welcome/index
	 *	- or -
	 * Since this controller is set as the default controller in 
	 * config/routes.php, it's displayed at http://example.com/
	 *
	 * So any other public methods not prefixed with an underscore will
	 * map to /index.php/welcome/<method_name>
	 * @see http://codeigniter.com/user_guide/general/urls.html
	 */
	
	public function __construct()
	{
		parent::__construct();
		
		$this->load->helper(array('url','security','html'));
		$this->load->library(array('user_agent','parser'));
		$this->load->model('Main_model', 'mainmodel', TRUE);
		
	}
	
	public function index()
	{
		$data = array(
			'site_title' => 'test coy', 
			'base_url' => base_url(),
			'tahun_sekarang' => date("Y")
			);
		$this->parser->parse('template/mobile',$data);
	}
	
	public function search()
	{
		$data = array(
			'site_title' => 'test coy', 
			'base_url' => base_url(),
			'tahun_sekarang' => date("Y")
			);
		$this->parser->parse('template/mobile', $data);
	}
	
}

/* End of file mobile.php */
/* Location: ./application/controllers/mobile.php */
